<?php 
    
    $tipo = $this->uri->segment(3);
    
?>
<div class="span9">
		  <div class="row-fluid">
			<div class="page-header">
				<h1><?=$titulo.' / '.$tipo;?></h1>
			</div>
			<?php $atributos_formulario = array('id'=>'exm1','role'=>'form','onsubmit'=>'PreventMultipleSubmit()','class'=>'form-inline');
                            echo form_open ("atendimentocontroller/listarAtendimento",$atributos_formulario);
                            if(validation_errors())
                            {?>
                                <div class="alert alert-danger">
                                    <button type="button" class="close " data-dismiss="alert">&times;</button>
                                    <span><?=validation_errors();?></span>
                                </div>
                            <?php                            
                            }
                            
                             if($this->session->flashdata('cadastrook')){?>
                                <div class="alert alert-success">
                                    <button type="button" class="close " data-dismiss="alert">&times;</button>
                                    <p><?=$this->session->flashdata('cadastrook');?></p>
                                </div>
                             <?php
                            }?>
                   
                      
                        
                                <fieldset>
                                  	 <div class="control-group">
                                            <label class="control-label" for="inputData">Data Início</label>
                                                <div class="controls">
                                                    <div>
                                                        <div id="datetimepicker" class="input-append date datetimepicker">
                                                              
                                                              <?php echo form_input(array('name'=>'dataInicio', 'id'=>'dataInicio', 'type'=>'text','class'=>'input-large inputData','placeholder'=>'Data Início'), set_value('dataInicio'));?>
                                                              <span class="add-on">
       								 <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
                                                              </span>
   							</div>
                                                    </div>
                                                </div>
			  		</div>
                                  
                                  	 <div class="control-group">
                                            <label class="control-label" for="inputData">Data Fim</label>
                                                <div class="controls">
                                                    <div>
                                                        <div id="datetimepicker" class="input-append date datetimepicker">
                                                              
                                                              <?php echo form_input(array('name'=>'dataFim', 'id'=>'dataFim', 'type'=>'text','class'=>'input-large inputData','placeholder'=>'Data Fim'), set_value('dataFim'));?>
                                                              <span class="add-on">
       								 <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
                                                              </span>
   							</div>
                                                    </div>
                                                </div>
			  		</div>
                                  
                                  
					<div class="form-actions">
						<input type="submit" class="btn btn-success btn-large" value="Salvar" /> 
                                                <?=anchor(base_url()."principalcontroller","Cancelar",array('class'=>'btn'));?>                                                
					</div>					
				</fieldset>
			</form>
		  
        </div>
</div>